import { DirectiveBinding } from 'vue'
import { useUserStore } from '/@/store/modules/user';
const vPerm = {
  mounted(el:Element,bindding: DirectiveBinding) {
    const userStore = useUserStore()
    if(!userStore.hasPerm(bindding.value)) {
      el.parentNode?.removeChild(el)
    }
  }
}
export default vPerm